﻿using System;
using System.Windows.Forms;

namespace PPHelper
{
    public partial class SettingsForm : Form
    {
        public SettingsForm()
        {
            InitializeComponent();
        }

        private void FormSettingsLoad(object sender, EventArgs e)
        {
            pgSettings.SelectedObject = PPHSettings.Instance;
        }

        private void PgSettingsPropertyValueChanged(object s, PropertyValueChangedEventArgs e)
        {
            if (pgSettings.SelectedObject is PPHSettings)
                ((PPHSettings)pgSettings.SelectedObject).Save();
        }
    }
}
